import { get, post, put, deleteApi } from '@/utils/api'

export function pageQuery(queryParams) {
    return get('/admin/types/page', queryParams)
}

export function insert(data) {
    return post('/admin/types', data)
}

export function update(data) {
    return put('/admin/types', data)
}

export function deleteData(ids) {
    return deleteApi('/admin/types', ids)
}

export function typeOptions() {
    return get(`/admin/types/options`)
}

export function typeEffectiveOptions() {
    return get(`/admin/types/effective/options`)
}
